<%@ page import="org.apache.struts.action.ActionMessages" %>

<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator" prefix="decorator" %>
<%@ taglib uri="http://struts.apache.org/tags-logic-el" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-html-el" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://amc.af.mil/radtaglibrary" prefix="rad" %>
<%@ taglib uri="http://amc.af.mil/portal-el" prefix="portal" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">


<rad:base/>

<head>
    <title>375 CSPTS ADPE Tracker</title>

    <link href="css/portal.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" href="css/display-tag.css">
    <%-- adpetracker.css is last in order to override any preceeding properties--%>
    <link href="css/adpetracker.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" href="css/modalbox.css" type="text/css" media="screen" />
    
    <%-- javascript files --%>
    <script src="js/portal.js" type="text/javascript"></script>
    <script src="js/portal-fade.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/adpetracker.js"></script>
    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js?load=builder,effects"></script>
    <script type="text/javascript" src="js/modalbox.js"></script>
    <script type="text/javascript">

        function getBaseHref() {

            //make the baseHref visible as baseHref
            var childNodes = document.getElementsByTagName('base');
            var baseTag = childNodes[0];
            var baseHref = baseTag.getAttribute('href');

            return baseHref;
        }

        if (document.all && !document.getElementById) {
            document.getElementById = function(id) {
                return document.all[id];
            }
        }

    </script>

    <%-- don't cache pages --%>
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

    <decorator:head/>

</head>

<body>
<script type="text/javascript">
    window.status = "loading <decorator:title default="375 CSPTS ADPE Tracker" />...";
</script>

<portal:header title="<font style=\"font-size: 12px;\">ADPE Tracker</font>"
               image="images/portal/headers/afHeader.jpg">

<%--<portal:logout url="logoutAction.do" />--%>    
<portal:menu>

</portal:menu>

</portal:header>
<br>
<br>

<logic:messagesPresent message="false">
    <br>
    <portal:alert title="Application Error" id="global-alert-box" fade="true">
        <html:errors/>
    </portal:alert>
    <br>
</logic:messagesPresent>

<logic:messagesPresent property="<%= ActionMessages.GLOBAL_MESSAGE %>" message="true">
    <br>
    <portal:information title="Application Notification" id="global-information-box" fade="true">
        <html:messages property="<%= ActionMessages.GLOBAL_MESSAGE %>" id="msg" message="true">
            <c:out value="${msg}" escapeXml="false"/>
        </html:messages>
    </portal:information>
    <br>
</logic:messagesPresent>

<decorator:body/>

</body>
</html>
